<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basepath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>合同收取定金</title>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no" name="format-detection" />
    <link href="<%=basepath%>css/index.css" rel="stylesheet" type="text/css">
    <link href="<%=basepath%>css/platform.css" rel="stylesheet" type="text/css">
    <script src="<%=basepath%>js/jquery-1.8.3.min.js"></script>
    <script src="<%=basepath%>js/layer/layer.js"></script>
</head>
<body>
<div class="viewport">
    <div class="header">
       <div class="header-1">
           <a href="javascrpt:void(0)" id="join" class="header-2">
              <span id="account" class="account">${empty user.realName ? '' : user.realName}</span>&nbsp;&nbsp;<span id="deptName" class="deptName">${user.departmentName}</span>
           </a>
           <a href="/wape-web/api/core/centerService?serviceCode=WJ9999&targetURL=store&prefix=3g_platform_shop-rent_op&entrance=yes" class="back" id="back">返回</a>
           <span class="span-num">WYP33300</span>
       </div>
    </div>
    <div class="content m-top">
        <div class="sr-1">
            <div class="sr-1-1"><span style="float:left;font-size:12px;"><span>${topMarket}</span>&nbsp;&nbsp;&nbsp;&nbsp;<span>${storeRemark}</span></span><span style="position:absolute;left:50%;font-size:12px;"><b>${fatherName}</b>&nbsp;&nbsp;&nbsp;&nbsp;<b>${storeName}</b></span></span></div>
        </div>
        <div class="blank"></div>
        <form method="post" id="myForm" action="/wape-web/api/core/centerService">
        <div class="layout3-1" style="font-size:12px;">
            <div class="layout3-1-1">
                <table style="width:100%;">
                   <tr>
                       <td style="width:65px;"><span>合同编号：</span></td>
                       <td>${leasing.contractNum}</td>
                   </tr>
                </table>
            </div>
            <div class="hr"></div>
            <div class="layout3-1-1">
                <table style="width:100%;">
                   <tr>
                       <td style="width:65px;"><span>合同名称：</span></td>
                       <td>${leasing.contractName}</td>
                   </tr>
                </table>
            </div>
            <div class="hr"></div>
            <div class="layout3-1-1">
                <table style="width:100%;">
                   <tr>
                       <td style="width:65px;"><span>租售状态：</span></td>
                       <td>
                       <c:if test="${leasing.tenantState == 1}">已出租</c:if>
                       <c:if test="${leasing.tenantState == 2}">已出售</c:if>
                       <c:if test="${leasing.tenantState == 3}">等待出租</c:if>
                       <c:if test="${leasing.tenantState == 4}">等待出售</c:if>
                       <c:if test="${leasing.tenantState == 5}">自营物业</c:if>
                       <c:if test="${leasing.tenantState == 6}">出租预订+已交定金</c:if>
                       <c:if test="${leasing.tenantState == 7}">出售预定+已交定金</c:if>
                       <c:if test="${leasing.tenantState == 8}">出租预定+未交定金</c:if>
                       <c:if test="${leasing.tenantState == 9}">出售预定+未交定金</c:if>
                       <c:if test="${leasing.tenantState == 10}">公共设施</c:if>
                       <c:if test="${leasing.tenantState == 11}">物业维修中</c:if>
                       </td>
                   </tr>
                </table>
            </div>
            <div class="hr"></div>
            <div class="layout3-1-1">
                <table style="width:100%;">
                   <tr>
                       <td style="width:65px;"><span>租金方式：</span></td>
                       <td>
                       <c:if test="${leasing.contractMode == 10}">保证金+整年租</c:if>
                       <c:if test="${leasing.contractMode == 20}">保证金+半年租</c:if>
                       <c:if test="${leasing.contractMode == 30}">保证金+月度租金</c:if>
                       <c:if test="${leasing.contractMode == 40}">保证金+季度租金</c:if>
                       </td>
                   </tr>
                </table>
            </div>
            <div class="hr"></div>
            <div class="layout3-1-1">
                <table style="width:100%;">
                   <tr>
                       <td style="width:65px;"><span>租赁周期：</span></td>
                       <td>
                       <c:if test="${leasing.contractType == 10}">半年</c:if>
                       <c:if test="${leasing.contractType == 20}">一年</c:if>
                       <c:if test="${leasing.contractType == 30}">两年</c:if>
                       <c:if test="${leasing.contractType == 40}">三年</c:if>
                       <c:if test="${leasing.contractType == 50}">五年</c:if>
                       <c:if test="${leasing.contractType == 60}">十年</c:if>
                       <c:if test="${leasing.contractType == 70}">二十年</c:if>
                       <c:if test="${leasing.contractType == 80}">二十六年</c:if>
                       </td>
                   </tr>
                </table>
            </div>
            <div class="hr"></div>
            <div class="layout3-1-1">
                <table style="width:100%;">
                   <tr>
                       <td style="width:65px;"><span>合同状态：</span></td>
                       <td>${leasing.contractStateName}</td>
                   </tr>
                </table>
            </div>
            <div class="hr"></div>
            <div class="layout3-1-1">
                <table style="width:100%;">
                   <tr>
                       <td style="width:90px;"><span>合同签订时间：</span></td>
                       <td>${leasing.tenantday}</td>
                   </tr>
                </table>
            </div>
            <div class="hr"></div>
            <div class="layout3-1-1">
                <table style="width:100%;">
                   <tr>
                       <td style="width:90px;"><span>合同生效时间：</span></td>
                       <td>${leasing.hiredate}</td>
                   </tr>
                </table>
            </div>
            <div class="hr"></div>
            <div class="layout3-1-1">
                <table style="width:100%;">
                   <tr>
                       <td style="width:90px;"><span>合同失效时间：</span></td>
                       <td>${leasing.closingday}</td>
                   </tr>
                </table>
            </div>
            <div class="hr"></div>
            <div class="layout3-1-1">
                <table style="width:100%;">
                   <tr>
                       <td style="width:65px;"><span>商户姓名：</span></td>
                       <td>${leasing.tenantName}</td>
                   </tr>
                </table>
            </div>
            <div class="hr"></div>
            <div class="layout3-1-1">
                <table style="width:100%;">
                   <tr>
                       <td style="width:65px;"><span>电 &nbsp;&nbsp;&nbsp;&nbsp;&ensp;话：</span></td>
                       <td>${leasing.tenantPhone}</td>
                   </tr>
                </table>
            </div>
            <div class="hr"></div>
            <div class="layout3-1-1">
                <table style="width:100%;">
                   <tr>
                       <td style="width:75px;"><span>身份证号码：</span></td>
                       <td>${leasing.idNum}</td>
                   </tr>
                </table>
            </div>
            <div class="hr"></div>
            <div class="layout3-1-1">
                <table style="width:100%;">
                   <tr>
                       <td style="width:65px;"><span>商铺名称：</span></td>
                       <td>${leasing.tenantCompanyName}</td>
                   </tr>
                </table>
            </div>
            <div class="blank-b"></div>
            <div class="layout3-1-1">
                <table style="width:100%;">
                   <tr>
                       <td style="width:65px;"><span>定金收缴：</span></td>
                       <td><span>${leasing.deposit}</span>&nbsp;&nbsp;元</td>
                   </tr>
                </table>
            </div>
            <div class="blank-b"></div>
            <div class="layout3-1-1">
                <table style="width:100%;">
                   <tr>
                       <td style="width:65px;"><span>备&nbsp;&nbsp;&nbsp;&nbsp;&ensp;注：</span></td>
                       <td>${leasing.contractRemark}</td>
                   </tr>
                </table>
            </div>
        </div>
        </form>
        <div class="space"></div>
    </div>
</div>
</body>
<script type="text/javascript">
     /*错误提示*/
     $(function(){
         var error = "${requestScope.returnMsg}";
         if(error != "" && error != "成功!"){
             layer.msg(error,{shadeClose:true,shade:0.1,time:2000});
         }
     });
     
</script>
</html>


